package com.zlc.common.core.resource.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zlc.common.common.service.BaseServiceImpl;
import com.zlc.common.core.resource.mapper.MayanPlatSystemMapper;
import com.zlc.common.core.resource.model.entity.MayanPlatSystem;
import com.zlc.common.core.resource.model.vo.MayanPlatSystemVo;
import com.zlc.common.core.resource.service.MayanPlatSystemService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author  zl
 * @date 2023-05-08 
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class MayanPlatSystemServiceImpl extends BaseServiceImpl<MayanPlatSystemMapper, MayanPlatSystem, MayanPlatSystemVo> implements MayanPlatSystemService {

    @Override
    public MayanPlatSystemVo getBySystemCode(String systemCode) {
        LambdaQueryWrapper<MayanPlatSystem> wrapper = wrapper();
        wrapper.eq(MayanPlatSystem::getSystemCode,systemCode);
        return queryOne(wrapper);
    }
}
